package com.ssm.Service;

import com.ssm.Dao.UserDao;
import com.ssm.Dao.saveShopDao;

public class addShopService {

    public boolean add(String name, String picture){
        Boolean bl=false;

        saveShopDao saveShopDao=new saveShopDao();

        //用户id
        UserDao userDao=new UserDao();
        int byName = userDao.findByName(name);

        //保存购物车信息
        boolean save = saveShopDao.save(byName, picture);

        return save;
    }

}
